//
//  TPKeyboardAvoidingScrollView.h
//
//  Created by Michael Tyson on 11/04/2011.
//  Copyright 2011 A Tasty Pixel. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol TPKeyboardAvoidingScrollViewDelegate;
@interface TPKeyboardAvoidingScrollView : UIScrollView
@property (assign, nonatomic) BOOL autoAdjustsContentSizeToBounds;
@property (nonatomic, weak) id<TPKeyboardAvoidingScrollViewDelegate> keyboardDelegate;
- (BOOL)focusNextTextField;
- (void)scrollToActiveTextField;
@end


@protocol TPKeyboardAvoidingScrollViewDelegate <NSObject>

@optional
- (void)TPKeyboardAvoidingScrollView:(TPKeyboardAvoidingScrollView *)scrollView  becomeFirstResponder:(UIView *)view;
- (void)TPKeyboardAvoidingScrollView:(TPKeyboardAvoidingScrollView *)scrollView  resignFirstResponder:(UIView *)view;
@end

